package com.workstudy.wstudy.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.workstudy.common.annotation.Excel;
import com.workstudy.common.core.domain.BaseEntity;

/**
 * 岗位管理对象 wst_post
 * 
 * @author sun
 * @date 2021-04-04
 */
public class WstPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long postId;

    /** 岗位编码 */
    @Excel(name = "岗位编码")
    private String postCode;

    /** 岗位名称 */
    @Excel(name = "岗位名称")
    private String postName;

    /** 创建者ID */
    @Excel(name = "创建者ID")
    private Long createUserId;

    /** 更新者ID */
    @Excel(name = "更新者ID")
    private Long updateUserId;

    /** 招聘人数 */
    @Excel(name = "招聘人数")
    private Integer needNum;

    /** 状态 */
    @Excel(name = "状态")
    private String postStatus;

    /** 工资 */
    @Excel(name = "工资")
    private BigDecimal salary;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 工作介绍 */
    @Excel(name = "工作介绍")
    private String mainwork;

    /** 实际招收 */
    @Excel(name = "实际招收")
    private Integer actuals;

    /** 工作地址 */
    @Excel(name = "工作地址")
    private String workplace;

    /** 招聘开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "招聘开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 招聘结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "招聘结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    private List<WstStudent> students;

    private List<WstPostUser> postUsers;

    public List<WstPostUser> getPostUsers() {
        return postUsers;
    }

    public void setPostUsers(List<WstPostUser> postUsers) {
        this.postUsers = postUsers;
    }

    public List<WstStudent> getStudents() {
        return students;
    }

    public void setStudents(List<WstStudent> students) {
        this.students = students;
    }

    public void setPostId(Long postId)
    {
        this.postId = postId;
    }

    public Long getPostId() 
    {
        return postId;
    }
    public void setPostCode(String postCode) 
    {
        this.postCode = postCode;
    }

    public String getPostCode() 
    {
        return postCode;
    }
    public void setPostName(String postName) 
    {
        this.postName = postName;
    }

    public String getPostName() 
    {
        return postName;
    }
    public void setCreateUserId(Long createUserId) 
    {
        this.createUserId = createUserId;
    }

    public Long getCreateUserId() 
    {
        return createUserId;
    }
    public void setUpdateUserId(Long updateUserId) 
    {
        this.updateUserId = updateUserId;
    }

    public Long getUpdateUserId() 
    {
        return updateUserId;
    }
    public void setNeedNum(Integer needNum)
    {
        this.needNum = needNum;
    }

    public Integer getNeedNum()
    {
        return needNum;
    }
    public void setPostStatus(String postStatus) 
    {
        this.postStatus = postStatus;
    }

    public String getPostStatus() 
    {
        return postStatus;
    }
    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setMainwork(String mainwork) 
    {
        this.mainwork = mainwork;
    }

    public String getMainwork() 
    {
        return mainwork;
    }
    public void setActuals(Integer actuals)
    {
        this.actuals = actuals;
    }

    public Integer getActuals()
    {
        return actuals;
    }
    public void setWorkplace(String workplace) 
    {
        this.workplace = workplace;
    }

    public String getWorkplace() 
    {
        return workplace;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("postCode", getPostCode())
            .append("postName", getPostName())
            .append("createUserId", getCreateUserId())
            .append("createTime", getCreateTime())
            .append("updateUserId", getUpdateUserId())
            .append("updateTime", getUpdateTime())
            .append("needNum", getNeedNum())
            .append("postStatus", getPostStatus())
            .append("salary", getSalary())
            .append("status", getStatus())
            .append("mainwork", getMainwork())
            .append("actuals", getActuals())
            .append("workplace", getWorkplace())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("phone", getPhone())
            .append("remark", getRemark())
            .toString();
    }
}
